.class public Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;
.super Landroid/widget/LinearLayout;


# instance fields
.field private a:Landroid/widget/TextView;

.field private b:Landroid/widget/ImageView;

.field private c:Ljava/lang/String;

.field private d:I


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 2

    invoke-direct {p0, p1, p2}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    const-string/jumbo v0, "layout_inflater"

    invoke-virtual {p1, v0}, Landroid/content/Context;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    const v1, 0x7f03016b

    invoke-virtual {v0, v1, p0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    const v0, 0x7f0c080e

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/TextView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->a:Landroid/widget/TextView;

    const v0, 0x7f0c080f

    invoke-virtual {p0, v0}, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    iput-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->b:Landroid/widget/ImageView;

    return-void
.end method


# virtual methods
.method public a()I
    .locals 1

    iget v0, p0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->d:I

    return v0
.end method

.method public setIconVisible(Z)V
    .locals 2

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->b:Landroid/widget/ImageView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->b:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0
.end method

.method public setPosition(I)V
    .locals 0

    iput p1, p0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->d:I

    return-void
.end method

.method public setText(Ljava/lang/String;)V
    .locals 2

    iput-object p1, p0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->c:Ljava/lang/String;

    iget-object v0, p0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->a:Landroid/widget/TextView;

    iget-object v1, p0, Lcom/waiqin365/lightapp/im/adapter/CustFileItemView;->c:Ljava/lang/String;

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    return-void
.end method
